package com.kaifamiao.demo.d0801.factory;

public class Test {

    public static void main(String[] args) {
        HumanFactory factory = new HumanFactory();

        Human man = factory.createHuman(2);
        Human man1 = factory.createHuman(0);

        man.printColor();
        man.talk();
    }
}
